/**
 * 
 */
package ro.dta.idbi.model;

/**
 * Transformation pattern exception
 * 
 * @author Tudor
 * 
 */
public class TransformationException extends Exception {

	private static final long serialVersionUID = 2101050645295066100L;
	
	/**
	 * Cause of the exception
	 */
	private Exception cause;

	/**
	 * Transformation exception class constructor
	 * 
	 * @param message
	 *            Message associated to the exception
	 */
	public TransformationException(String message) {
		super(message);
	}
	
	/**
	 * Transformation exception class constructor
	 * 
	 * @param cause
	 *            Cause of the exception
	 */
	public TransformationException(Exception cause) {
		super(cause);
		this.cause = cause;
	}

	/**
	 * @return the cause
	 */
	public Exception getCause() {
		return cause;
	}
}
